package org.example.myerp.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import  org.example.myerp.pojo.*;
@Mapper
public interface ProductMapper2 {
	public List<Producess> SjCxfindByPager(Map<String, Object> params);

	public long SjCxpageTotal();

	public List<PdoProcess> selscProcess(Integer scpgd_id);

	public List<ProDisOrder> wcCtfindByPager(Map<String, Object> params);

	public long wcCtPageTotal();

	public List<ProDisOrder> wcCtfindByPagers(Map<String, Object> params);

	public long wcCtPageTotals();

	public List<ProproSheet> scgxchfindByPager(Map<String, Object> params);

	public long scgxchwcCtPageTotal();

	public List<DproList> cxProducess(Integer pducess_id);

	public List<ProproSheet> cpsjbgfindByPager(Map<String, Object> params);

	public long cpsjbgPageTotal();

	public List<ProproSheet> gxwlcxfindByPager(Map<String, Object> params);

	public long gxwlcxPageTotal();

	// ���ù���
	public void replaceProcess(ProproSheet proproSheet);

	public void repDelProcessDeatil(Integer pducess_id);

	public void repDelProcessDeatilWuliao(Integer pducess_id);

	public void repUpdateWuliaoDesgin(Integer proSige_id);

	public List<ProproSheet> gxwlbgfindByPager(Map<String, Object> params);

	public long gxwlbgPageTotal();

	// �������ϱ���������
	public void gswlbgprocess(Integer pducess_id);

	public void gswlbgprocessisgxwl(@Param("pducess_id") Integer pducess_id, @Param("processesid") Integer processesid);

	public Integer gswlwugCount(Integer pducess_id);

	public void gswlwugCounts(@Param("gswlwugCount") Integer gswlwugCount, @Param("pducess_id") Integer pducess_id);

	public List<MaterialList> selMaterialList(@Param("pducess_id") Integer pducess_id,
			@Param("processesid") Integer processesid);

	public Integer gxwumWunum(MaterialList materialList);

	public void gxwumWunumbg(@Param("gxwumWunum") Integer gxwumWunum, @Param("proSige_id") Integer proSige_id,
			@Param("wid") Integer wid);

	public void wuNumbg(@Param("pducess_id") Integer pducess_id, @Param("processesid") Integer processesid);

	// �������ϱ�����
	public void gxwicxsj(MaterialList materialList);

	public Integer wuCount(MaterialList materialList);

	public void updategxWugCount(@Param("wuCount") Integer wuCount, @Param("pducess_id") Integer pducess_id,
			@Param("processesid") Integer processesid);

	public void updategxWugCounts(@Param("wuCount") Integer wuCount, @Param("pducess_id") Integer pducess_id,
			@Param("processesid") Integer processesid);

	public void gxwlbgWang(Integer pducess_id);

	public List<NewPlan> newPlanListfindByPager(Map<String, Object> params);
	public long newPlanListPageTotal();

	public List<NewPlanDetail> selNewPlanDetail(Integer newpro_id);

	//
	public Integer   preProcessNum (@Param("scpgd_id") Integer scpgd_id,@Param("pucess_gid") Integer pucess_gid);


}
